// 邮箱校验
export function validate_email(value) {
    let regEmail = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;
    return regEmail.test(value);
}

// 密码校验
export function validate_password(value) {
    const regPassword = /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,20}$/;
    return regPassword.test(value)
}

// 验证码校验
export function validate_code4(value) {
    let regCode = /^[a-zA-Z0-9]{4}$/;
    return regCode.test(value);
}